package com.zhoux.ty.feign;

import com.zhoux.ty.domain.JsonResult;
import com.zhoux.ty.domain.SysNotice;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author taoyi
 * @version 1.0
 * @date 2021/7/25 18:42
 */
@FeignClient(value="zhoux-system",contextId = "remoteNoticeService")
public interface RemoteNoticeService {

    @GetMapping("/notice/")
    JsonResult doSelectNotices(SysNotice notice);

    @GetMapping("{id}")
    JsonResult doSelectById(@PathVariable Long id);
}
